package com.ys.data.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.common.vo.RoleVo;
import com.ys.data.auth.entity.Role;

import java.util.List;

/**
* @version: V1.0
* @author: szw
* @className: RoleService
* @packageName: RoleService
* @description:  角色接口
* @data: 2021-1-19 
**/ 
public interface RoleService extends IService<Role> {

    /**
     * 保存角色信息
     * @param roleVo
     * @return
     */
    int saveRole(RoleVo roleVo)throws Exception;

    /**
     * 更新角色信息
     * @param roleVo
     * @return
     */
    int updateRole(RoleVo roleVo)throws Exception;

    /**
     * 查询角色信息
     * @param roleId
     * @return
     */
    Role findRole(Long roleId)throws Exception;

    /**
     * 删除角色信息
     * @param roleId
     * @return
     */
    int deleteRole(Long roleId)throws Exception;

    /**
     * 查询角色列表信息
     * @param roleVo
     * @return
     */
    List<Role> selectRoles(RoleVo roleVo);
}
